import mitt from 'mitt'

export default {
  install: (app) => {
    const emitter = mitt()
    app.config.globalProperties.$mitt = emitter
    app.provide('mitt', emitter) // 用于 Composition API
  }
}
